<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
	<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@include file="common/header.jsp"%>
<div class="clearfix"></div>
<div class="row">
	<div class="col-md-12">
		<div class="x_panel">
			<div class="x_title">
				<div class="clearfix"></div>
			</div>
				<div class="x_content">
				<form method="post" action="${pageContext.request.contextPath}/zhangdan/lists">
					<input type="hidden" name="pageIndex" value="1" />
			    <ul>
					<li>
						<div class="form-group">
							<label class="control-label col-md-3 col-sm-3 col-xs-12">日期</label>
							<div class="col-md-6 col-sm-6 col-xs-12">
								<input name="rudate" type="date" class="form-control col-md-7 col-xs-12" value="">
							</div>
						</div>
					</li>
					
					<%-- <li>
						<div class="form-group">
							<label class="control-label col-md-3 col-sm-3 col-xs-12">供应商</label>
							<div class="col-md-6 col-sm-6 col-xs-12">
								<select name="suppilerId" class="form-control">
									<c:if test="${supiler != null }">
									   <option value="">--请选择--</option>
									   <c:forEach var="supiler" items="${supiler}">
									   		<option <c:if test="${supiler.supplierId == queryStatus }">selected="selected"</c:if>
									   		value="${supiler.supplierId}">${supiler.supplierName}</option>
									   </c:forEach>
									</c:if>
        						</select>
							</div>
						</div>
					</li> --%>
					
					<li>
						<div class="form-group">
							<label class="control-label col-md-3 col-sm-3 col-xs-12">账单编号</label>
							<div class="col-md-6 col-sm-6 col-xs-12">
								<input name="accountId" type="text" class="form-control col-md-7 col-xs-12" value="">
							</div>
						</div>
					</li>
					
					<li><button type="submit" class="btn btn-primary"> 查 &nbsp;&nbsp;&nbsp;&nbsp;询 </button></li>
				</ul>
			</form>
			
		</div>
	</div>
</div>
<div class="col-md-12 col-sm-12 col-xs-12">
	<div class="x_panel">
		<div class="x_content">
			<p class="text-muted font-13 m-b-30"></p>
			<div id="datatable-responsive_wrapper"
				class="dataTables_wrapper form-inline dt-bootstrap no-footer">
				<div class="row">
					<div class="col-sm-12">
						<table id="datatable-responsive" class="table table-striped table-bordered dt-responsive nowrap dataTable no-footer dtr-inline collapsed"
							cellspacing="0" width="100%" role="grid" aria-describedby="datatable-responsive_info" style="width: 100%;">
							<thead>
								<tr role="row">
									<th class="sorting_asc" tabindex="0"
										aria-controls="datatable-responsive" rowspan="1" colspan="1"
										aria-label="First name: activate to sort column descending"
										aria-sort="ascending">账单明细ID</th>
									<th class="sorting" tabindex="0"
										aria-controls="datatable-responsive" rowspan="1" colspan="1"
										aria-label="Last name: activate to sort column ascending">
										供应商</th>
									<th class="sorting" tabindex="0"
										aria-controls="datatable-responsive" rowspan="1" colspan="1"
										aria-label="Last name: activate to sort column ascending">
										总金额</th>
									<th class="sorting" tabindex="0"
										aria-controls="datatable-responsive" rowspan="1" colspan="1"
										aria-label="Last name: activate to sort column ascending">
										入账日期</th>
									<th class="sorting" tabindex="0"
										aria-controls="datatable-responsive" rowspan="1" colspan="1"
										aria-label="Last name: activate to sort column ascending">
										付款类型</th>
										
									<!-- <th class="sorting" tabindex="0"
										aria-controls="datatable-responsive" rowspan="1" colspan="1"
										style="width: 124px;"
										aria-label="Last name: activate to sort column ascending">
										操作</th> -->
								</tr>
							</thead>
							<tbody>
								<c:forEach var="suppilerAccountDetatil" items="${suppilerAccountDetatil }" varStatus="status">
									<tr role="row" class="odd">
										<td tabindex="0" class="sorting_1">${suppilerAccountDetatil.accountdetailId}</td>
										<td>${suppilerAccountDetatil.contacts }</td>
										<td>${suppilerAccountDetatil.money }</td>
										<td>
										<fmt:formatDate value="${suppilerAccountDetatil.rudate }" type="both" dateStyle="default" timeStyle="default"></fmt:formatDate></td>
										<td><c:if test="${suppilerAccountDetatil.status ==1}">现金</c:if><c:if test="${suppilerAccountDetatil.status ==2}">网上转账</c:if></td>
										<%-- <td>
										<div class="btn-group">
                      <button type="button" class="btn btn-danger">点击操作</button>
                      <button type="button" class="btn btn-danger dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
                        <span class="caret"></span>
                        <span class="sr-only">Toggle Dropdown</span>
                      </button>
                      <ul class="dropdown-menu" role="menu">
                      <c:choose>
                      	<c:when test="${ planlist.planExecute != 2}">
                        <li>
                        	<c:choose>
											<c:when test="${planlist.planAudit == 1 || planlist.planExecute == 5}">
												<a class="saleSwichOpen" saleSwitch="open" appinfoid=${planlist.planId }  appsoftwarename=2 data-toggle="tooltip" data-placement="top" title="" data-original-title="恭喜您，您的审核已经通过，您可以点击上架发布您的APP">审核</a>
											</c:when>
											<c:when test="${planlist.planAudit == 2}">
												<a class="saleSwichClose" saleSwitch="close" appinfoid=${planlist.planId }  appsoftwarename=2 data-toggle="tooltip" data-placement="top" title="" data-original-title="您可以点击下架来停止发布您的APP，市场将不提供APP的下载">执行</a>
											</c:when>
										</c:choose>
                        </li>
                        <li><a class="addVersion" appinfoid="${planlist.planId }" data-toggle="tooltip" data-placement="top" title="" data-original-title="新增采购明细表">新增采购明细</a>
                        </li>
                        <li><a  class="modifyAppInfo" 
											appinfoid="${planlist.planId }" status="${planlist.planAudit }" statusname="${appInfo.statusName }"
											data-toggle="tooltip" data-placement="top" title="" data-original-title="修改计划单信息">修改</a></li>
                        <li><a  class="viewApp" appinfoid=${appInfo.id }  data-toggle="tooltip" data-placement="top" title="" data-original-title="查看APP基础信息以及全部版本信息">采购明细单</a></li>
						<li><a  class="deleteApp" appinfoid=${planlist.planId }  appsoftwarename=${appInfo.softwareName } data-toggle="tooltip" data-placement="top" title="" data-original-title="删除APP基础信息以及全部版本信息">删除</a></li>
                      </c:when>
                      <c:when test="${ planlist.planExecute == 2}">
                      	<li>
                      	<a href="${pageContext.request.contextPath}/caigou/ruku?id=${planlist.planId}" >验收入库</a>
                      	</li>
                      </c:when>
                      </c:choose>
                      </ul>
                    </div>
								</td> --%>		
									</tr>
								</c:forEach>
							</tbody>
						</table>
					</div>
				</div>
				<div class="row">
					<div class="col-sm-5">
						<div class="dataTables_info" id="datatable-responsive_info"
							role="status" aria-live="polite">共${pages.totalCount }条记录
							${pages.currentPageNo }/${pages.totalPageCount }页</div>
					</div>
					<div class="col-sm-7">
						<div class="dataTables_paginate paging_simple_numbers"
							id="datatable-responsive_paginate">
							<ul class="pagination">
								<c:if test="${pages.currentPageNo > 1}">
									<li class="paginate_button previous"><a
										href="javascript:page_nav(document.forms[0],1);"
										aria-controls="datatable-responsive" data-dt-idx="0"
										tabindex="0">首页</a>
									</li>
									<li class="paginate_button "><a
										href="javascript:page_nav(document.forms[0],${pages.currentPageNo-1});"
										aria-controls="datatable-responsive" data-dt-idx="1"
										tabindex="0">上一页</a>
									</li>
								</c:if>
								<c:if test="${pages.currentPageNo < pages.totalPageCount }">
									<li class="paginate_button "><a
										href="javascript:page_nav(document.forms[0],${pages.currentPageNo+1 });"
										aria-controls="datatable-responsive" data-dt-idx="1"
										tabindex="0">下一页</a>
									</li>
									<li class="paginate_button next"><a
										href="javascript:page_nav(document.forms[0],${pages.totalPageCount });"
										aria-controls="datatable-responsive" data-dt-idx="7"
										tabindex="0">最后一页</a>
									</li>
								</c:if>
							</ul>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
</div>
<%@include file="common/footer.jsp"%>
<script src="${pageContext.request.contextPath }/statics/localjs/rollpage.js"></script>
<script src="${pageContext.request.contextPath }/statics/localjs/appinfolist.js"></script>